package com.ds.infrastructure.hyperspace.console.dao.dao;

import com.ds.infrastructure.hyperspace.console.dao.mapper.TbEnvironmentMapper;
import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbEnvironment;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-09-18 11:09
 **/

@Repository
public class TbEnvironmentDao {
    @Autowired
    TbEnvironmentMapper tbEnvironmentMapper;

    public TbEnvironment selectByPrimaryKey(Long id) {
        return tbEnvironmentMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TbEnvironment record) {
        return tbEnvironmentMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(TbEnvironment record) {
        return tbEnvironmentMapper.insertSelective(record);
    }

    public List<TbEnvironment> selectListForPage(TbEnvironment where, TbCustomWhere mapWhere, TbPageWhere pageWhere) {
        return tbEnvironmentMapper.selectListForPage(where, mapWhere, pageWhere);
    }

    public int selectListForPageCount(TbEnvironment where, TbCustomWhere mapWhere) {
        return tbEnvironmentMapper.selectListForPageCount(where, mapWhere);
    }
}
